//
//  FPCitiesModel.h
//  FinanceProject
//
//  Created by 陈显摆 on 2025/4/23.
//

#import <JSONModel/JSONModel.h>

NS_ASSUME_NONNULL_BEGIN

@protocol FPCitiesChild <NSObject>
@end
@interface FPCitiesChild : JSONModel

@property (nonatomic , strong) NSString *cityChild;
@property (nonatomic , strong) NSString *clickFlag;
@property (nonatomic , strong) NSString *districtName;
@property (nonatomic , strong) NSString *districtSqe;
@property (nonatomic , strong) NSString *extName;

@property (nonatomic , strong) NSString *flag;
@property (nonatomic , strong) NSString *hierarchy;
@property (nonatomic , strong) NSString *ID;
@property (nonatomic , strong) NSString *mapCode;
@property (nonatomic , strong) NSString *pid;

@property (nonatomic , strong) NSString *provinceName;
@property (nonatomic , strong) NSString *type;

@end

@interface FPCitiesModel : JSONModel

@property (nonatomic , strong) NSArray <FPCitiesChild> *cityChild;
@property (nonatomic , strong) NSString *clickFlag;
@property (nonatomic , strong) NSString *districtName;
@property (nonatomic , strong) NSString *districtSqe;
@property (nonatomic , strong) NSString *extName;

@property (nonatomic , strong) NSString *flag;
@property (nonatomic , strong) NSString *hierarchy;
@property (nonatomic , strong) NSString *ID;
@property (nonatomic , strong) NSString *mapCode;
@property (nonatomic , strong) NSString *pid;

@property (nonatomic , strong) NSString *provinceName;
@property (nonatomic , strong) NSString *type;

+ (void)getCitiesSuccess:(void (^)(NSArray * _Nonnull))success failure:(void (^)(NSError * _Nonnull))failure;

@end

NS_ASSUME_NONNULL_END
